package com.open.capacity;

import com.open.capacity.common.port.PortApplicationEnvironmentPreparedEventListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @program: open-capacity-platform
 * @description: 主启动类
 * @author: bellweather
 * @create: 2021-01-18 16:15
 **/

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.open.capacity.activity.dao")
public class ActivityCenterApp {
    public static void main(String[] args) {
        // 随机端口启动
        SpringApplication app = new SpringApplication(ActivityCenterApp.class);
        app.addListeners(new PortApplicationEnvironmentPreparedEventListener());
        app.run(args);
    }

}
